package com.chainofresponsibility.pattern.domain;

/**
 * @author cc
 * @classname AuditInfo
 * @description 责任链处理过程中返回结果的类
 * @date 2022/3/29 15:20
 */
public class AuditInfo {

    private String code;
    private String info = "";

    public AuditInfo(String code, String... infos) {
        this.code = code;
        for (String str : infos) {
            this.info = this.info.concat(str);
        }
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "AuditInfo{" +
                "code='" + code + '\'' +
                ", info='" + info + '\'' +
                '}';
    }
}
